 
package com.xbongbong.paas.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 套打实体
 *
 * @author hongxiao
 * @date 2021-01-18 14:39
 */
@Setter
@Getter
@ToString
public class PaasKitPrintTemplateEntity extends Entity {

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = 8580093847984176444L;
	//========== properties ==========

	/**
	* 主键
	*/
	private Long id;
	/**
	* 打印模板名称
	*/
	private String name;
	/**
	 * 场景类型：1.快递，2.发票，3.人事
	 */
	private Integer type;
	/**
	* 是否为当前启用模板（1是，0否）
	*/
	private Integer enable;
	/**
	* 前端传过来的页面信息
	*/
	private String html;
	/**
	* 一些打印配置信息如"间距"，json格式
	*/
	private String configInfo;
	/**
	* 创建时间时间戳
	*/
	private Long addTime;
	/**
	* 更新时间时间戳
	*/
	private Long updateTime;
	/**
	* 删除标记
	*/
	private Integer del;

	public PaasKitPrintTemplateEntity(){
		del = 0;
	}

	public PaasKitPrintTemplateEntity(String name, Long addTime, Long updateTime, Integer type, String html, String configInfo) {
		this.name = name;
		this.addTime = addTime;
		this.updateTime = updateTime;
		this.type = type;
		this.html = html;
		this.configInfo = configInfo;
		this.del = 0;
	}

	public PaasKitPrintTemplateEntity(String name, Integer enable, String html, String configInfo, Integer type, Long addTime, Long updateTime, Integer del) {
		this.name = name;
		this.enable = enable;
		this.html = html;
		this.configInfo = configInfo;
		this.type = type;
		this.addTime = addTime;
		this.updateTime = updateTime;
		this.del = del;
	}
}

